//package com.jpa.yuan.mapper;
//
//import com.jpa.yuan.vo.Person;
//import com.jpa.yuan.vo.Teacher;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.Query;
//
//import java.util.List;
//
//public interface PersonReposotry extends JpaRepository<Teacher, Integer> {
//  /*  @Query(value = "select  new Teacher(t.id,t.lastName,t.age,p.score) from t_user t,Person  p where  t.id=p.pid and t.id=?1", nativeQuery = true)
//    public List<Teacher> get(int id);*/
//}
